

export default () => {

  const formSize = ref( 'default' );

  const rules = reactive( {
    username: [
      { required: true, message: 'Please input Activity username', trigger: 'blur' },
      { min: 3, max: 5, message: 'Length should be 3 to 5', trigger: 'blur' },
    ],
    password: [
      { required: true, message: 'Please input Activity password', trigger: 'blur' },
      { min: 4, max: 8, message: 'Length should be 4 to 8', trigger: 'blur' },
    ],
  } );

  return {
    formSize,
    rules
  }
}